package com.huadi.bili_hot.service;

import com.huadi.bili_hot.entity.Hello;
import com.huadi.bili_hot.dao.mapper.HelloMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HelloServiceImpl implements HelloService {
    @Autowired
    private HelloMapper helloMapper;

    @Override
    public String getHellos() {
        List<Hello> hellos = helloMapper.selectAll();
        return hellos.toString();
    }
}
